package com.zyy.study.always.code6;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

public class Library {
    private List<Book> books;

    private Library() {
        books = new CopyOnWriteArrayList<>();
        books.add(new Book("Java编程思想", "Bruce Eckel"));
        books.add(new Book("Effective Java", "Joshua Bloch"));
        books.add(new Book("深入理解Java虚拟机", "周志明"));
        books.add(new Book("设计模式", "Erich Gamma"));
        books.add(new Book("算法导论", "Thomas Cormen"));
    }

    public void borrow(String title) {

    }
}
